package com.uobgroup.ews.uam.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

import org.springframework.beans.factory.annotation.Configurable;

@Entity
@Configurable
public class TransactionDocument extends BaseEntity {

   @OneToOne
   private Reference transactionCode;

   @OneToOne
   private Reference document;

   @Id
   @GeneratedValue(strategy = GenerationType.AUTO)
   @Column(name = "id")
   private Long id;

   public Long getId() {
      return this.id;
   }

   public void setId(Long id) {
      this.id = id;
   }

   public Reference getTransactionCode() {
      return this.transactionCode;
   }

   public void setTransactionCode(Reference transactionCode) {
      this.transactionCode = transactionCode;
   }

   public Reference getDocument() {
      return this.document;
   }

   public void setDocument(Reference document) {
      this.document = document;
   }
}
